package com.jwdf.uda.ui.adapter.viewholder;

import android.databinding.DataBindingUtil;
import android.view.View;
import com.jwdf.uda.R;
import com.jwdf.uda.databinding.ViewLikeSectionBinding;
import com.jwdf.uda.ui.adapter.AbsViewHolder;
import com.jwdf.uda.ui.adapter.item.ReplyDetailItem;

/**
 * Created by Administrator on 2016/10/17.
 */
public class ReplySectionLikeViewHolder extends AbsViewHolder<ReplyDetailItem>{
    private ViewLikeSectionBinding mItemBinding;

    public ReplySectionLikeViewHolder(View convertView) {
        super(convertView);
        mItemBinding = DataBindingUtil.bind(convertView);
    }

    @Override
    protected void onBindView(ReplyDetailItem item) {
        mItemBinding.tvZan.setText(convertView.getContext().getString(R.string.reply_like, item.likeCount));
    }
}
